package com.schoolMall.service;

import com.schoolMall.domain.Shop;
import com.schoolMall.dto.ImageHolder;
import com.schoolMall.dto.ShopDto;
import com.schoolMall.exception.ShopOperationException;

/**
 * @author:zyh
 * @Time:2021-08-29-15:12
 * @email:1269231889@qq.com
 */
public interface ShopService {
    /**
     * 新增店铺
     * @param shop
     * @param imageHolder
     * @return
     */
    ShopDto addShop(Shop shop, ImageHolder imageHolder);

    /**
     * 根据店铺ID查询店铺
     * @param shopId
     * @return
     */
    Shop queryShopById(long shopId);

    /**
     * 修改商铺
     * @param shop
     * @param imageHolder
     * @return
     * @throws ShopOperationException
     */
    ShopDto modifyShop(Shop shop, ImageHolder imageHolder) throws ShopOperationException;
}
